Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "dashboard-geolocator">

With this node you can add a button to an existing dashboard or a new one created by the node. If this button is pressed geolocation information retrieved by the browser is sent by the node.

Configuration

dashboard string
Dashboard title to which the button will be added
widget string
Title that will have the widget containing the button.

Outputs

  1. Complete message
    Returns a JSON containing all information about geolocation
  2. Latitude
    Returns the latitude
  3. Longitude
    Returns the longitude
  4. Accuracy
    Returns the accuracy of latitude and longitude
  5. Altitude
    Returns the altitude
  6. Altitude
    Returns the altitude accuracy
  7. Heading
    Returns the heading
  8. Speed
    Returns the speed